package cn.edu.bitc;

public class Java_06 {
    public static void main(String[] args) {
//        int a = 10;
//        a++;
//        ++a;
//        System.out.println(a);

//        int a = 10;
//        int b = a++;
//        System.out.println(a);
//        System.out.println(b);
//
//        int x = 10;
//        int y = --x;
//        System.out.println(x);
//        System.out.println(y);
        int a = 10;
        ++a;
        System.out.println(a);
        --a;
        System.out.println(a);

        System.out.println("----------------------------------------------");

        int i = 10;
        int rs = ++i;
        System.out.println(i);
        System.out.println(rs);

        int j = 10;
        int rs2 = j++;
        System.out.println(j);
        System.out.println(rs2);
    }
}
